package com.contacts.biz;

import java.sql.SQLException;
import java.util.List;

import com.contacts.model.Contact;
import com.contacts.model.TelBook;
import com.contacts.model.User;

public interface UserBiz {

	User login(String uname, String upwd);

	List<TelBook> showTelBook(int uid);

	List<Contact> showContact(int uid, int tid);

	boolean addContact(String cname, String ctel, int uid, int tid) throws SQLException;

	boolean deleteContact(int cid) throws SQLException;

	boolean changeContact(String newName, String newTel, int cid) throws SQLException;

	Contact serchContact(String cname,int uid);

}
